package com.bookmanger.pojo.Entity;

import lombok.Data;

import java.util.List;

@Data
public class BookType {
    private Integer id;
    private String typeName;
    private Integer parentId;
    private Integer isDelete;
    private Integer level;
    private Boolean isLeaf;
    private String remark;
    private ExtInfo ext;
    private List<BookType> children;

    public void setLeaf(Boolean leaf) {
        isLeaf = leaf;
    }

    @Data
    public static class ExtInfo {
        private String icon;
        private Integer bookCount;
    }
}